package com.fanxing.generic.util;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhaoyunlong
 * @date 2020/12/7
 * @description
 */
@Slf4j
public class TestDemOne {


    public static void main(String[] args) {

//        Object[] objArr = new Object[5];
//        objArr[0] = 6;
//        objArr[1] = 0;
//        objArr[2] = "";
//        objArr[3] = "";
//        objArr[4] = 1;
//        String u = u(objArr);
//        System.out.println(u);


        System.out.println(Integer.valueOf(false ? 1 : 0));
    }


    public static String u(Object... objArr) {
        String str;
        if (objArr == null || objArr.length <= 0) {
            log.info("MicroMsg.ReportManagerKvCheck", "vals is null, use '' as v2");
            str = "";
        } else if (objArr.length == 1) {
            str = String.valueOf(objArr[0]);
        } else {
            StringBuilder sb = new StringBuilder();
            int length = objArr.length - 1;
            for (int i = 0; i < length; i++) {
                sb.append(String.valueOf(objArr[i]).replace(',', ' ')).append(',');
            }
            sb.append(String.valueOf(objArr[length]));
            str = sb.toString();
        }
        return str;
    }
}
